package com.itheima.demo;

import java.io.*;
import java.util.Arrays;

public class Demo01 {
    public static void main(String[] args) throws IOException {
        //"day11_IO\\a.txt"
        FileInputStream fis = new FileInputStream("day11_IO\\嘿嘿嘿.avi");
        FileOutputStream fos = new FileOutputStream("day11_IO\\copy.avi");

        byte[] bytes = new byte[4096];
        int len;
        while ((len = fis.read(bytes))!=-1){
            fos.write(bytes,0,len);
        }

        fis.close();
        fos.close();
    }
}
